﻿@{
    ViewBag.Title = "网络管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript">
    @if (!string.IsNullOrEmpty(ViewBag.Url))
    {
        if (!((string)ViewBag.Url).Contains("http://10.188.238.38"))
        {
            <text>
            winOpen = window.open('@(Url.Action("towz4", "Network"))', "winOpen", "location=1,status=1,scrollbars=1,  width=1,height=1");
            winOpen.moveTo(0, 0);
            timer = window.setInterval("IfWindowClosed()", 1000);

            function IfWindowClosed() {
                var isloaded = winOpen.length || -1;
                if (isloaded > 0) {
                    winOpen.close();
                    $('#entuty').attr('src', '@(ViewBag.Url)');
                    window.clearInterval(timer);
                }
            }
            </text>
         }
         else{
            <text>
            window.open('@(Url.Action("towz4", "Network"))');
            </text>
         }
    }
    else{
        <text>
          alert('您还为配置该模块相关设置，如需配置，请联系管理员！')
        </text>
    }
</script>



<div id="container" style="width: 1043px; height: 565px; overflow-y: visible;">

    <iframe id="entuty" style="height: 99%; width: 99%"></iframe>

</div>
